import request from '@/utils/request'

// 查询实时成交列表
export function listSpotrealtimelastesttradebak(query) {
  return request({
    url: '/spotrealtimelastesttrade/spotrealtimelastesttradebak/list',
    method: 'get',
    params: query
  })
}

// 查询实时成交详细
export function getSpotrealtimelastesttradebak(id) {
  return request({
    url: '/spotrealtimelastesttrade/spotrealtimelastesttradebak/' + id,
    method: 'get'
  })
}

// 新增实时成交
export function addSpotrealtimelastesttradebak(data) {
  return request({
    url: '/spotrealtimelastesttrade/spotrealtimelastesttradebak',
    method: 'post',
    data: data
  })
}

// 修改实时成交
export function updateSpotrealtimelastesttradebak(data) {
  return request({
    url: '/spotrealtimelastesttrade/spotrealtimelastesttradebak',
    method: 'put',
    data: data
  })
}

// 删除实时成交
export function delSpotrealtimelastesttradebak(id) {
  return request({
    url: '/spotrealtimelastesttrade/spotrealtimelastesttradebak/' + id,
    method: 'delete'
  })
}
